package org.itheima.game.org.tank.game.model

import org.itheima.game.org.tank.game.Config
import org.itheima.game.org.tank.game.business.Attackable
import org.itheima.game.org.tank.game.business.Blockable
import org.itheima.game.org.tank.game.business.Sufferable
import org.itheima.kotlin.game.core.Painter

/**
 * description ： 铁块
 * author : chenmengjia
 * email : cmjsp1990@163.com
 * date : 2020/3/14 14:29
 */
class Steel(override var x: Int, override var y: Int) : Blockable, Sufferable {
    override var blood: Int = 1

    override fun notifySuffer(attackable: Attackable): Array<View>? {
        return null
    }

    override var width: Int = Config.block
    override var height: Int = Config.block

    override fun draw() {
        Painter.drawImage("img/steel.gif", x, y)
    }
}